package com.dhcc.bpm.modules.safe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @ClassName OrgaGateway
 * @Description 网关访问控制机构关联表实体类
 * @Author daina
 * @Date 2020/2/21 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Data
@TableName("opc_orga_gateway")
@ApiModel(value = "OrgaGateway对象", description = "网关访问控制机构关联表")
public class OrgaGateway implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	* 编号
	*/
		@ApiModelProperty(value = "编号")
		@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
		@TableId( value = "id", type = IdType.ASSIGN_ID )
		private Long id;
	/**
	* 控制ID （关联opc_gateway_control表）
	*/
		@ApiModelProperty(value = "控制ID （关联opc_gateway_control表）")
		@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
		private Long opcControlId;
	/**
	* 机构ID （关联opc_orga表）
	*/
		@ApiModelProperty(value = "机构ID （关联opc_orga表）")
		@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
		private Long opcOrgaId;

}
